<?php

namespace Admin\Models\bpm;

class XHBpmTransList extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iBPLId;
    
    public $iBPPId;

    /**
     *
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $sMarketName;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $sMarketPhone;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchoolName;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchoolAddress;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tApplyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iStudentNum;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iTeacherNum;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sApplyGrade;

    /**
     *
     * @var integer
     * @Column(type="integer", length=255, nullable=true)
     */
    public $iClassNum;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sClassDesc;

    /**
     *
     * @var string
     * @Column(type="string", length=100, nullable=true)
     */
    public $sOperateName;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $bVerify;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tVerifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchChargeName;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchChargePhone;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $retian1;


    public $tParentTrain;

    public $tTechInTrain;

    public $tStuTrain;

    public $tTechOpTrain;
    
    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tRunItemDate;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchNetChargeName;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sSchNetChargePhone;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bKnow;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tNetTestDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iOfficeNum;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sOfficeAddress;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sGrade;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $tabletVersion;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sContentDate;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sPayDate;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $iChargeMode;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $iTabletCost;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $iServiceCost;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tPayedDate;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mStatusDesc;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;



    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     * create by dale 20180302
     */
    public $iOperateId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     * create by dale 20180302
     */
    public $iMarketId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     * create by dale 20180302
     */
    public $iTchRoom;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     * create by dale 20180302
     */
    public $iOtherNum;


    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     * create by dale 20180302
     */
    public $mOtherAddress;

    /**
     *
     * @var string
     * @Column(type="string",length=10, nullable=true)
     * create by dale 20180302
     */
    public $sYear;

    /**
     *
     * @var string
     * @Column(type="string",length=255, nullable=true)
     * create by dale 20180302
     */
    public $sClasses;

    /**
     * @var integer
     * @Column(type="integer",length=4, nullable=true)
     * create by dale 20180906
     */
    public $bUpdate;

    /**
     * @var string
     * @Column(type="string", nullable=true)
     * create by dale 20181011
     */
    public $mOldData;


    /**
     * Initialize method for model.
     */
    public function initialize()
    {
       // $this->setSchema("test");
        $this->setSource("XHBpm_TransList");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHBpm_TransList';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHBpmTransList[]|XHBpmTransList|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHBpmTransList|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
